package 实训训练.work;

public class Student {
    private int id;
    private String name;
    private int  math;
    private int chinese;
    private int english;

    public Student(int id, String name,int chinese ,int math , int english) {
        this.id = id;
        this.name = name;
        this.math = math;
        this.chinese = chinese;
        this.english = english;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getMath() {
        return math;
    }

    public void setMath(int math) {
        this.math = math;
    }

    public double getChinese() {
        return chinese;
    }

    public void setChinese(int chinese) {
        this.chinese = chinese;
    }

    public double getEnglish() {
        return english;
    }

    public void setEnglish(int english) {
        this.english = english;
    }
    public int getsum(){
        return this.math+this.chinese+this.english;
    }
}
